import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import nodejs from '@dfeidao/atom-web/msg/nodejs';
import render from '@dfeidao/atom-web/render/render';
import Paging1 from '@dfeidao/fd-w000010';
import p002 from './p002';
import get from '@dfeidao/atom-web/local/get';
export default async function a004(fd: IFeidaoAiBrowserComponent, e: { page_no: string }) {
	// todo
	const page_no = e.page_no;
	const post_package = get(fd, 'post_package');
	const res = await nodejs('GuoKai/zj-000003/s002', {

		page_no: page_no,
		post_package: post_package,
	});
	render(fd, res, p002, 'p002', 'inner');
	const p = fd.data.node.querySelector<Paging1>('[data-id="Paging1"]');
	p.setAttribute('page-no', page_no + '');
}
